<?php

use App\Models\Article;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        Article::truncate();
        $faker=\Faker\Factory::create();
        for ($i=0; $i <40 ; $i++) {
            Article::create([
                'username'=>$faker->name.str_random(5),
                'email'=>str_random(10).'@adlerian.xyzd',
                'ipAddress'=>'127.0.0.1',
            ]);
        }
        // $this->call(UsersTableSeeder::class);
    }
}
